{
语法百题 解题报告：
 http://git.oschina.net/et0662/sznoi-grammar/ 
}
var
	t:char;
	n:integer=0;
begin
	while not eoln do
	begin
		read(t);
		if(t='o') or (t='e') then
		begin
			if(t='e') then
			begin
				if (n mod 2) =0 then
					write('0')
				else
					write('1');
			end
			else
			begin
				if (n mod 2) =1 then
					write('0')
				else
					write('1');
			end;
		end
		else if t='#' then
			exit
		else begin
			write(t);
			if t='1' then inc(n);
		end;
	end;
end.
